package com.seari.tunnel.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.seari.tunnel.entity.CorridorOut;
import com.seari.tunnel.entity.PayHistory;
import com.seari.tunnel.entity.PayHistoryParam;
import com.seari.tunnel.entity.PayName;
import com.seari.tunnel.mapper.CorridorOutMapper;
import com.seari.tunnel.mapper.PayHistoryMapper;
import com.seari.tunnel.mapper.PayNameMapper;
import com.seari.tunnel.service.IPayFeeService;

@Service(IPayFeeService.SERVICE_NAME)
public class PayFeeServiceImpl implements IPayFeeService{
	@Autowired
	CorridorOutMapper corridorOutMapper;
	@Autowired
	PayNameMapper payNameMapper;
	@Autowired
	PayHistoryMapper payHistoryMapper;
	
	@Override
	public List<CorridorOut> findOutComp() {
		
		return corridorOutMapper.getOutComp();
	}

	@Override
	public List<PayName> getPayNameSelect() {
		
		return payNameMapper.getPayNameSelect();
	}

	@Override
	public void updatePay(PayHistory payHistory){
		payHistoryMapper.addPayHistory(payHistory);
	}

	@Override
	public List<PayHistory> getPayHistorys() {
		
		return payHistoryMapper.getPayHistorys();
	}

	@Override
	public List<PayHistoryParam> getPayHistoryParams() {
		
		return payHistoryMapper.getPayHistoryParams();
	}

	@Override
	public void deletePayHistory(int id) {
		payHistoryMapper.deletePayHistory(id);
		
	}

	@Override
	public void updatePayFee(PayHistory payHistory) {
		payHistoryMapper.updatePayFee(payHistory);
		
	}

	@Override
	public List<CorridorOut> findjfComp() {
		return corridorOutMapper.getjfComp();
	}
	
}
